Optimal. Leaf size=146 \[ \frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {(A-5 B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {(A-5 B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{480 c^2 f (c-c \sin (e+f x))^{9/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 146, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 40, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.075, Rules used = {3051, 2822,
2821} \begin {gather*} \frac {(A-5 B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{480 c^2 f (c-c \sin (e+f x))^{9/2}}+\frac {(A-5 B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {(A+B) \cos (e+f x) (a \sin (e+f x)+a)^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2821
Rule 2822
Rule 3051
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{7/2} (A+B \sin (e+f x))}{(c-c \sin (e+f x))^{13/2}} \, dx &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {(A-5 B) \int \frac {(a+a \sin (e+f x))^{7/2}}{(c-c \sin (e+f x))^{11/2}} \, dx}{6 c}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {(A-5 B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {(A-5 B) \int \frac {(a+a \sin (e+f x))^{7/2}}{(c-c \sin (e+f x))^{9/2}} \, dx}{60 c^2}\\ &=\frac {(A+B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{12 f (c-c \sin (e+f x))^{13/2}}+\frac {(A-5 B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{60 c f (c-c \sin (e+f x))^{11/2}}+\frac {(A-5 B) \cos (e+f x) (a+a \sin (e+f x))^{7/2}}{480 c^2 f (c-c \sin (e+f x))^{9/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(442\) vs. \(2(146)=292\).
time = 6.67, size = 442, normalized size = 3.03 \begin {gather*} \frac {4 (A+B) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (a (1+\sin (e+f x)))^{7/2}}{3 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{13/2}}-\frac {4 (3 A+5 B) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^3 (a (1+\sin (e+f x)))^{7/2}}{5 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{13/2}}+\frac {3 (A+3 B) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^5 (a (1+\sin (e+f x)))^{7/2}}{2 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{13/2}}+\frac {(-A-7 B) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (a (1+\sin (e+f x)))^{7/2}}{3 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{13/2}}+\frac {B \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^9 (a (1+\sin (e+f x)))^{7/2}}{2 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^7 (c-c \sin (e+f x))^{13/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(392\) vs.
\(2(128)=256\).
time = 0.41, size = 393, normalized size = 2.69
method | result | size |
default | \(\frac {\sin \left (f x +e \right ) \left (a \left (1+\sin \left (f x +e \right )\right )\right )^{\frac {7}{2}} \left (3 A \left (\cos ^{6}\left (f x +e \right )\right )-3 A \left (\cos ^{5}\left (f x +e \right )\right ) \sin \left (f x +e \right )+18 A \left (\cos ^{5}\left (f x +e \right )\right )+21 A \left (\cos ^{4}\left (f x +e \right )\right ) \sin \left (f x +e \right )-72 A \left (\cos ^{4}\left (f x +e \right )\right )+51 A \left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )+15 B \left (\cos ^{4}\left (f x +e \right )\right )-15 B \left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )-106 A \left (\cos ^{3}\left (f x +e \right )\right )-157 A \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-10 B \left (\cos ^{3}\left (f x +e \right )\right )+5 B \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )+235 A \left (\cos ^{2}\left (f x +e \right )\right )-78 A \sin \left (f x +e \right ) \cos \left (f x +e \right )-35 B \left (\cos ^{2}\left (f x +e \right )\right )+30 B \sin \left (f x +e \right ) \cos \left (f x +e \right )+118 A \cos \left (f x +e \right )+196 A \sin \left (f x +e \right )+10 B \cos \left (f x +e \right )-20 B \sin \left (f x +e \right )-196 A +20 B \right )}{30 f \left (-c \left (\sin \left (f x +e \right )-1\right )\right )^{\frac {13}{2}} \left (\cos ^{4}\left (f x +e \right )+\left (\cos ^{3}\left (f x +e \right )\right ) \sin \left (f x +e \right )+3 \left (\cos ^{3}\left (f x +e \right )\right )-4 \left (\cos ^{2}\left (f x +e \right )\right ) \sin \left (f x +e \right )-8 \left (\cos ^{2}\left (f x +e \right )\right )-4 \cos \left (f x +e \right ) \sin \left (f x +e \right )-4 \cos \left (f x +e \right )+8 \sin \left (f x +e \right )+8\right )}\) | \(393\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.43, size = 228, normalized size = 1.56 \begin {gather*} -\frac {{\left (15 \, B a^{3} \cos \left (f x + e\right )^{4} - 15 \, {\left (A + 3 \, B\right )} a^{3} \cos \left (f x + e\right )^{2} + 6 \, {\left (3 \, A + 5 \, B\right )} a^{3} - 2 \, {\left (5 \, {\left (A + B\right )} a^{3} \cos \left (f x + e\right )^{2} - {\left (11 \, A + 5 \, B\right )} a^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{30 \, {\left (c^{7} f \cos \left (f x + e\right )^{7} - 18 \, c^{7} f \cos \left (f x + e\right )^{5} + 48 \, c^{7} f \cos \left (f x + e\right )^{3} - 32 \, c^{7} f \cos \left (f x + e\right ) + 2 \, {\left (3 \, c^{7} f \cos \left (f x + e\right )^{5} - 16 \, c^{7} f \cos \left (f x + e\right )^{3} + 16 \, c^{7} f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 359 vs.
\(2 (137) = 274\).
time = 0.55, size = 359, normalized size = 2.46 \begin {gather*} -\frac {{\left (60 \, B a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{8} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 20 \, A a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 100 \, B a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{6} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 15 \, A a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 75 \, B a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 6 \, A a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 30 \, B a^{3} \sqrt {c} \cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - A a^{3} \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 5 \, B a^{3} \sqrt {c} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {a}}{480 \, {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )}^{6} c^{7} f \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 22.85, size = 406, normalized size = 2.78 \begin {gather*} -\frac {\sqrt {c-c\,\sin \left (e+f\,x\right )}\,\left (\frac {56\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\left (4\,A+5\,B\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{5\,c^7\,f}+\frac {a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (3\,e+3\,f\,x\right )\,\left (A\,1{}\mathrm {i}+B\,1{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,32{}\mathrm {i}}{3\,c^7\,f}-\frac {32\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (2\,e+2\,f\,x\right )\,\left (A+2\,B\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{c^7\,f}+\frac {8\,B\,a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (4\,e+4\,f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}}{c^7\,f}-\frac {a^3\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (e+f\,x\right )\,\left (A\,13{}\mathrm {i}+B\,5{}\mathrm {i}\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,32{}\mathrm {i}}{5\,c^7\,f}\right )}{-858\,\cos \left (e+f\,x\right )\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}+858\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (3\,e+3\,f\,x\right )-130\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (5\,e+5\,f\,x\right )+2\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\cos \left (7\,e+7\,f\,x\right )+1144\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (2\,e+2\,f\,x\right )-416\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (4\,e+4\,f\,x\right )+24\,{\mathrm {e}}^{e\,7{}\mathrm {i}+f\,x\,7{}\mathrm {i}}\,\sin \left (6\,e+6\,f\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________